home *** CD-ROM | disk | FTP | other *** search
/ Resource Library: Multimedia / Resource Library: Multimedia.iso / maestro / source / videofrm / videofrm.h < prev    next >
Encoding:
C/C++ Source or Header  |  1993-06-15  |  3.6 KB  |  134 lines

  1. /*
  2.  * Copyright (c) 1992 Stanford University
  3.  *
  4.  * Permission to use, copy, modify, and distribute this software and 
  5.  * its documentation for any purpose is hereby granted without fee, provided
  6.  * that (i) the above copyright notices and this permission notice appear in
  7.  * all copies of the software and related documentation, and (ii) the name
  8.  * Stanford may not be used in any advertising or publicity relating to
  9.  * the software without the specific, prior written permission of
  10.  * Stanford.
  11.  * 
  12.  * THE SOFTWARE IS PROVIDED "AS-IS" AND WITHOUT WARRANTY OF ANY KIND, 
  13.  * EXPRESS, IMPLIED OR OTHERWISE, INCLUDING WITHOUT LIMITATION, ANY 
  14.  * WARRANTY OF MERCHANTABILITY OR FITNESS FOR A PARTICULAR PURPOSE.  
  15.  *
  16.  * IN NO EVENT SHALL STANFORD BE LIABLE FOR ANY SPECIAL, INCIDENTAL,
  17.  * INDIRECT OR CONSEQUENTIAL DAMAGES OF ANY KIND, OR ANY DAMAGES
  18.  * WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER OR NOT
  19.  * ADVISED OF THE POSSIBILITY OF DAMAGE, AND ON ANY THEORY OF LIABILITY,
  20.  * ARISING OUT OF OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS
  21.  * SOFTWARE.
  22.  */
  23.  
  24. /* $Header: /Source/Media/drapeau/VideoFrame/RCS/VideoFrame.h,v 1.1 92/07/14 14:39:09 drapeau Exp $ */
  25. /* $Log:    VideoFrame.h,v $
  26.  * Revision 1.1  92/07/14  14:39:09  drapeau
  27.  * Initial revision
  28.  *  */
  29.  
  30. #ifndef _VideoFrameHeader_
  31. #define _VideoFrameHeader_
  32.  
  33. #include <stdio.h>
  34. #include <sys/file.h>
  35. #include <sys/param.h>
  36. #include <sys/stat.h>
  37. #include <sys/time.h>
  38. #include <sys/types.h>
  39. #include <xview/xview.h>
  40. #include <xview/font.h>
  41. #include <xview/notice.h>
  42. #include <xview/notify.h>
  43. #include <xview/panel.h>
  44. #include <xview/textsw.h>
  45. #include <xview/xv_xrect.h>
  46. #include "VideoFrame_ui.h"
  47. #include <xview/cursor.h>
  48. #include <gdd.h>
  49.  
  50. #include <MAEstro.h>
  51. #include <Sender.h>
  52. #include <Receiver.h>
  53. #include <Browse.h>
  54. #include <Video.h>
  55.  
  56. static char videoFrameHeaderRcsid[] = "$Header: /Source/Media/drapeau/VideoFrame/RCS/VideoFrame.h,v 1.1 92/07/14 14:39:09 drapeau Exp $";
  57.  
  58. #define    True            1
  59. #define False            0
  60. #define MaxNumberEditListItems    100
  61. #define Any            1
  62. #define Fixed            0
  63. #define NoCurrentEdit        -1
  64. #define VideoFrameDocument "#VideoFrame Document#"
  65.  
  66. typedef struct _InputAttrs
  67. {
  68.   int    shown;
  69.   int    cropped;
  70.   int    aspectRatio;
  71.   int    brightness;
  72.   int    contrast;
  73.   int    saturation;
  74.   int    hue;
  75.   int    width;
  76.   int    height;
  77.   int    x;
  78.   int    y;
  79. } InputAttrs;
  80.  
  81.  
  82. typedef struct _Edit
  83. {
  84.   char        label[LabelLength];
  85.   InputAttrs    input1;
  86.   InputAttrs    input2;
  87. } Edit;
  88.  
  89. typedef struct _EditList
  90. {
  91.   int        numEdits;
  92.   Edit        item[MaxNumberEditListItems];
  93. } EditList;
  94.  
  95.  
  96.  
  97. extern int    OpenEditList(char* filename, int id);
  98. extern int    SaveEditList(char* filename, int id);
  99. Menu_item    NewHandler(Menu_item item, Menu_generate op);
  100. Menu_item    QuitHandler(Menu_item item, Menu_generate op);
  101. void        FormatEntry(int whichItem, Edit* listItem, char* label);
  102. void        InitXVideoCanvases(void);
  103. void         OpenDoc(char** filename);
  104. void        SetSelection(MAESelection* selection);
  105. void        PerformSelection(void*);
  106. char**        GetDoc(void* unusedArg);
  107. MAESelection*    GetSelection(void* unusedArg);
  108. void        HaltSelection(MAESelection* selection);
  109. void        PauseSelection(void*);
  110. void        ResumeSelection(void*);
  111. void        HideApplication(void*);
  112. void        ShowApplication(void*);
  113. IconData*    GetAppIcon(void*);
  114. void        UpdateHeader(void);
  115.  
  116.  
  117. extern VideoFrame_mainWindow_objects    *VideoFrame_mainWindow;            /* Global object definitions. */
  118. extern VideoFrame_inputWindow1_objects    *VideoFrame_inputWindow1;
  119. extern VideoFrame_inputWindow2_objects    *VideoFrame_inputWindow2;
  120.  
  121. extern VideoIn    videoIn1;
  122. extern VideoIn    videoIn2;
  123.  
  124. extern EditList    editList;
  125. extern Edit    currentSelection;
  126. extern int    numEdits;
  127. extern int    unsavedChanges;
  128. extern int    currentEdit;
  129. extern char*    editListFileName;     
  130.  
  131.  
  132. #endif
  133.  
  134.